<ui:composition 
    xmlns="http://www.w3.org/1999/xhtml"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:c="http://java.sun.com/jsp/jstl/core"
    xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:p="http://primefaces.prime.com.tr/ui">
    <h:form style="font-size: 80%">
        <p:panel id="left-menu" header="Functions">
            <p:menu id="left-menu-list" style="width: 200px">
                <c:forEach items="#{workspaceManagerBean.sortedFunctions}" var="functions">
                    <p:submenu label="#{functions.get(0).methodCategory}">
                        <c:forEach items="#{functions}" var="function">
                            <p:menuitem value="#{function.methodName}" url="#{function.methodPath}.xhtml"/>
                        </c:forEach>
                    </p:submenu>
                </c:forEach> 
            </p:menu>
        </p:panel>
    </h:form>
</ui:composition>
